package com.hf.eagle.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hf.eagle.dao.PromotionDescDao;
import com.hf.eagle.domain.PromotionDesc;
import com.hf.eagle.service.PromotionDescService;

/**
 * @author Xu,XiaoYuan
 * @version 2011-10-09 01:47
 */
@Service
public class PromotionDescServiceImpl implements PromotionDescService {

	@Resource
	private PromotionDescDao promotionDescDao;

	public Long createPromotionDesc(PromotionDesc t) {
		return this.promotionDescDao.insertEntity(t);
	}

	public PromotionDesc getPromotionDesc(PromotionDesc t) {
		return this.promotionDescDao.selectEntity(t);
	}

	public Long getPromotionDescCount(PromotionDesc t) {
		return this.promotionDescDao.selectEntityCount(t);
	}

	public List<PromotionDesc> getPromotionDescList(PromotionDesc t) {
		return this.promotionDescDao.selectEntityList(t);
	}

	public int modifyPromotionDesc(PromotionDesc t) {
		return this.promotionDescDao.updateEntity(t);
	}

	public int removePromotionDesc(PromotionDesc t) {
		return this.promotionDescDao.deleteEntity(t);
	}

	public List<PromotionDesc> getPromotionDescPaginatedList(PromotionDesc t) {
		return this.promotionDescDao.selectEntityPaginatedList(t);
	}

}
